Optimal. Leaf size=353 \[ -\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (-\frac {e \left (\sqrt {b}+\sqrt {-a} x\right )}{\sqrt {-a} d-\sqrt {b} e}\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}-\frac {d^2 p \text {Li}_2\left (\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d-\sqrt {b} e}\right )}{e^3}-\frac {d^2 p \text {Li}_2\left (\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d+\sqrt {b} e}\right )}{e^3}+\frac {2 d^2 p \text {Li}_2\left (1+\frac {e x}{d}\right )}{e^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.32, antiderivative size = 353, normalized size of antiderivative = 1.00, number of steps
used = 21, number of rules used = 12, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.522, Rules used = {2516, 2498,
269, 211, 2505, 266, 2512, 2463, 2441, 2352, 2440, 2438} \begin {gather*} -\frac {d^2 p \text {PolyLog}\left (2,\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d-\sqrt {b} e}\right )}{e^3}-\frac {d^2 p \text {PolyLog}\left (2,\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d+\sqrt {b} e}\right )}{e^3}+\frac {2 d^2 p \text {PolyLog}\left (2,\frac {e x}{d}+1\right )}{e^3}-\frac {2 \sqrt {b} d p \text {ArcTan}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}+\frac {d^2 \log (d+e x) \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^3}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}-\frac {d^2 p \log (d+e x) \log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right )}{e^3}-\frac {d^2 p \log (d+e x) \log \left (-\frac {e \left (\sqrt {-a} x+\sqrt {b}\right )}{\sqrt {-a} d-\sqrt {b} e}\right )}{e^3}+\frac {b p \log \left (a x^2+b\right )}{2 a e}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 266
Rule 269
Rule 2352
Rule 2438
Rule 2440
Rule 2441
Rule 2463
Rule 2498
Rule 2505
Rule 2512
Rule 2516
Rubi steps
\begin {align*} \int \frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{d+e x} \, dx &=\int \left (-\frac {d \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2 (d+e x)}\right ) \, dx\\ &=-\frac {d \int \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \, dx}{e^2}+\frac {d^2 \int \frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{d+e x} \, dx}{e^2}+\frac {\int x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \, dx}{e}\\ &=-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {\left (2 b d^2 p\right ) \int \frac {\log (d+e x)}{\left (a+\frac {b}{x^2}\right ) x^3} \, dx}{e^3}-\frac {(2 b d p) \int \frac {1}{\left (a+\frac {b}{x^2}\right ) x^2} \, dx}{e^2}+\frac {(b p) \int \frac {1}{\left (a+\frac {b}{x^2}\right ) x} \, dx}{e}\\ &=-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {\left (2 b d^2 p\right ) \int \left (\frac {\log (d+e x)}{b x}-\frac {a x \log (d+e x)}{b \left (b+a x^2\right )}\right ) \, dx}{e^3}-\frac {(2 b d p) \int \frac {1}{b+a x^2} \, dx}{e^2}+\frac {(b p) \int \frac {x}{b+a x^2} \, dx}{e}\\ &=-\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}+\frac {\left (2 d^2 p\right ) \int \frac {\log (d+e x)}{x} \, dx}{e^3}-\frac {\left (2 a d^2 p\right ) \int \frac {x \log (d+e x)}{b+a x^2} \, dx}{e^3}\\ &=-\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}-\frac {\left (2 a d^2 p\right ) \int \left (-\frac {\sqrt {-a} \log (d+e x)}{2 a \left (\sqrt {b}-\sqrt {-a} x\right )}+\frac {\sqrt {-a} \log (d+e x)}{2 a \left (\sqrt {b}+\sqrt {-a} x\right )}\right ) \, dx}{e^3}-\frac {\left (2 d^2 p\right ) \int \frac {\log \left (-\frac {e x}{d}\right )}{d+e x} \, dx}{e^2}\\ &=-\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}+\frac {2 d^2 p \text {Li}_2\left (1+\frac {e x}{d}\right )}{e^3}+\frac {\left (\sqrt {-a} d^2 p\right ) \int \frac {\log (d+e x)}{\sqrt {b}-\sqrt {-a} x} \, dx}{e^3}-\frac {\left (\sqrt {-a} d^2 p\right ) \int \frac {\log (d+e x)}{\sqrt {b}+\sqrt {-a} x} \, dx}{e^3}\\ &=-\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (-\frac {e \left (\sqrt {b}+\sqrt {-a} x\right )}{\sqrt {-a} d-\sqrt {b} e}\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}+\frac {2 d^2 p \text {Li}_2\left (1+\frac {e x}{d}\right )}{e^3}+\frac {\left (d^2 p\right ) \int \frac {\log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right )}{d+e x} \, dx}{e^2}+\frac {\left (d^2 p\right ) \int \frac {\log \left (\frac {e \left (\sqrt {b}+\sqrt {-a} x\right )}{-\sqrt {-a} d+\sqrt {b} e}\right )}{d+e x} \, dx}{e^2}\\ &=-\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (-\frac {e \left (\sqrt {b}+\sqrt {-a} x\right )}{\sqrt {-a} d-\sqrt {b} e}\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}+\frac {2 d^2 p \text {Li}_2\left (1+\frac {e x}{d}\right )}{e^3}+\frac {\left (d^2 p\right ) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {-a} x}{-\sqrt {-a} d+\sqrt {b} e}\right )}{x} \, dx,x,d+e x\right )}{e^3}+\frac {\left (d^2 p\right ) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {-a} x}{\sqrt {-a} d+\sqrt {b} e}\right )}{x} \, dx,x,d+e x\right )}{e^3}\\ &=-\frac {2 \sqrt {b} d p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{\sqrt {a} e^2}-\frac {d x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{e^2}+\frac {x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{2 e}+\frac {d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)}{e^3}+\frac {2 d^2 p \log \left (-\frac {e x}{d}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right ) \log (d+e x)}{e^3}-\frac {d^2 p \log \left (-\frac {e \left (\sqrt {b}+\sqrt {-a} x\right )}{\sqrt {-a} d-\sqrt {b} e}\right ) \log (d+e x)}{e^3}+\frac {b p \log \left (b+a x^2\right )}{2 a e}-\frac {d^2 p \text {Li}_2\left (\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d-\sqrt {b} e}\right )}{e^3}-\frac {d^2 p \text {Li}_2\left (\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d+\sqrt {b} e}\right )}{e^3}+\frac {2 d^2 p \text {Li}_2\left (1+\frac {e x}{d}\right )}{e^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 319, normalized size = 0.90 \begin {gather*} \frac {\frac {4 \sqrt {b} d e p \tan ^{-1}\left (\frac {\sqrt {b}}{\sqrt {a} x}\right )}{\sqrt {a}}-2 d e x \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+e^2 x^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right )+\frac {b e^2 p \left (\log \left (a+\frac {b}{x^2}\right )+2 \log (x)\right )}{a}+2 d^2 \log \left (c \left (a+\frac {b}{x^2}\right )^p\right ) \log (d+e x)+2 d^2 p \left (2 \log \left (-\frac {e x}{d}\right ) \log (d+e x)-\log \left (\frac {e \left (\sqrt {b}-\sqrt {-a} x\right )}{\sqrt {-a} d+\sqrt {b} e}\right ) \log (d+e x)-\log \left (\frac {e \left (\sqrt {b}+\sqrt {-a} x\right )}{-\sqrt {-a} d+\sqrt {b} e}\right ) \log (d+e x)-\text {Li}_2\left (\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d-\sqrt {b} e}\right )-\text {Li}_2\left (\frac {\sqrt {-a} (d+e x)}{\sqrt {-a} d+\sqrt {b} e}\right )+2 \text {Li}_2\left (1+\frac {e x}{d}\right )\right )}{2 e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.22, size = 0, normalized size = 0.00 \[\int \frac {x^{2} \ln \left (c \left (a +\frac {b}{x^{2}}\right )^{p}\right )}{e x +d}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2} \log {\left (c \left (a + \frac {b}{x^{2}}\right )^{p} \right )}}{d + e x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^2\,\ln \left (c\,{\left (a+\frac {b}{x^2}\right )}^p\right )}{d+e\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________